home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / basepointwidget.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-16  |  944 b   |  40 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef BASEPOINTWIDGET_H
  8. #define BASEPOINTWIDGET_H
  9.  
  10. #include <QWidget>
  11. #include <QPaintEvent>
  12. #include <QMouseEvent>
  13. #include <QPainter>
  14. #include "scribusapi.h"
  15.  
  16. class SCRIBUS_API BasePointWidget : public QWidget
  17. {
  18.     Q_OBJECT
  19.  
  20. public:
  21.     BasePointWidget(QWidget *pa, int mode = 0);
  22.     ~BasePointWidget() {};
  23.     int checkedId();
  24.     void setCheckedId(int id);
  25.     void paintEvent(QPaintEvent *e);
  26.     void mousePressEvent(QMouseEvent *m);
  27.     void mouseReleaseEvent(QMouseEvent *);
  28.     void mouseMoveEvent(QMouseEvent *m);
  29.     void leaveEvent(QEvent*);
  30. private:
  31.     int m_mode;
  32.     int selectedBase;
  33.     int hooveredBase;
  34.     bool Mpressed;
  35. signals:
  36.     void buttonClicked(int);
  37. };
  38.  
  39. #endif
  40.